#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int n = 0;
	while (scanf("%d", &n) == 1)
	{
		int line = 0; int i=0,j = 0;
		for (line = 0; line <= n; line++)
		{
			for (i = 0; i < n - j; i++)
			{
				printf("  ");
			}
			j++;
			for (i = 0; i <= line; i++)
			{
				printf("*");
			}
			printf("\n");
		}
		j = 0;
		for (line = 0; line < n; line++)
		{
			for (i = 0; i <= line; i++)
			{
				printf("  ");
			}
			for (i =n-j; i>0; i--)
			{
				printf("*");
			}
			j++;
			printf("\n");
		}

	}

	return 0;
}